//存放所有的请求接口文件

// const url1 = 'http://43.138.203.235:8989/api/user'
// const url2 = 'http://43.138.203.235:8989/api/user'
// const url3 = 'http://43.138.203.235:9999/api'
// const url4 = 'http://43.138.203.235:7777/api/result'


const url1 = 'http://127.0.0.1:8989/api/user'
const url2 = 'http://127.0.0.1:8989/api/user'
const url3 = 'http://127.0.0.1:9999/api'
const url4 = 'http://127.0.0.1:7777/api/result'

// const url1 = 'http://192.168.10.106:8989/api/user'
// const url2 = 'http://192.168.10.106:8989/api/user'
// const url3 = 'http://192.168.10.106:9999/api'
// const url4 = 'http://192.168.10.106:7777/api/result'




const urls = class{
    static m(){
        //注册接口
        const register = `${url1}/register`
        //登录接口
        const login = `${url2}/login`
        
        //获取题目接口
        const quiz = `${url3}/GetQuiz`

        //存储结果
        const MBTI_result = `${url4}/putresult`

        //个人结果
        const person_result = `${url4}/Getresult`

        //班级结果
        const class_result =  `${url4}/Getclass`

         //所有信息
         const ALL_result =  `${url4}/GetAll`

         //保存答案
         const ALL_selection =  `${url4}/PutAnswer `

         //取出答案
         const GetAnswer =  `${url4}/GetAnswer `
        
        return {
            register,
            login,
            quiz,
            MBTI_result,
            person_result,
            class_result,
            ALL_result,
            ALL_selection,
            GetAnswer
        }
    }
}

export default urls